package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;

import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.token.bucket.*;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientTokenBucketDTO;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.token.bucket.LazyNettyClientTokenBucket;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;

/**
 * describe 客户端令牌桶
 *
 * @author Jia wei Wu
 * @date 2024/09/28 01:56 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
 **/
@LazyStructMapper
public interface LazyNettyClientTokenBucketDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucketDTOAssembler INSTANCE = LazyStructMappers.getMapper(LazyNettyClientTokenBucketDTOAssembler.class);

    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param lazyNettyClientTokenBucketStoryCommand 保存客户端令牌桶对象
     * @return {@link LazyNettyClientTokenBucket} 客户端令牌桶领域对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucket toLazyNettyClientTokenBucket(LazyNettyClientTokenBucketStoryCommand lazyNettyClientTokenBucketStoryCommand);

    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param lazyNettyClientTokenBucketUpdateCommand 更新客户端令牌桶对象
     * @return {@link LazyNettyClientTokenBucket} 客户端令牌桶领域对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucket toLazyNettyClientTokenBucket(LazyNettyClientTokenBucketUpdateCommand lazyNettyClientTokenBucketUpdateCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientTokenBucketQueryOneCommand 查询单个客户端令牌桶对象参数
     * @return {@link LazyNettyClientTokenBucket} 客户端令牌桶领域对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucket toLazyNettyClientTokenBucket(LazyNettyClientTokenBucketQueryOneCommand lazyNettyClientTokenBucketQueryOneCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyClientTokenBucketQueryListCommand 查询集合客户端令牌桶对象参数
     * @return {@link LazyNettyClientTokenBucket} 客户端令牌桶领域对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucket toLazyNettyClientTokenBucket(LazyNettyClientTokenBucketQueryListCommand lazyNettyClientTokenBucketQueryListCommand);

    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param lazyNettyClientTokenBucketRemoveCommand 删除客户端令牌桶对象参数
     * @return {@link LazyNettyClientTokenBucket} 客户端令牌桶领域对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucket toLazyNettyClientTokenBucket(LazyNettyClientTokenBucketRemoveCommand lazyNettyClientTokenBucketRemoveCommand);

    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param lazyNettyClientTokenBucket 客户端令牌桶领域对象
     * @return {@link LazyNettyClientTokenBucketDTO} 客户端令牌桶DTO对象
     * @author Jia wei Wu
     * @date 2024/09/28 01:56 下午
     **/
    LazyNettyClientTokenBucketDTO fromLazyNettyClientTokenBucket(LazyNettyClientTokenBucket lazyNettyClientTokenBucket);
}